<extend name="Public/base"/>

<block name="body">
    <h3>
        {$info['id']?'编辑':'新增'}导航
        <notempty name="pid">
            [&nbsp;父导航：<a href="{:U('index','pid='.$pid)}">{$parent.title}</a>&nbsp;]
        </notempty>
    </h3>
   <div class="panel-body panel panel-default">
        <form action="{:U()}" method="post">
            <input type="hidden" name="pid" value="{$pid}">
            <div class="form-group">
                <label class="control-label">导航标题<span class="check-tips">（用于显示的文字）</span></label>
                <input type="text" class="form-control" name="title" value="{$info.title|default=''}">
            </div>
            <div class="form-group">
                <label class="control-label">导航连接<span class="check-tips">（用于调转的URL，支持带http://的URL或U函数参数格式）</span></label>
                <input type="text" class="form-control" name="url" value="{$info.url|default=''}">
            </div>
            <div class="form-group">
                <label class="control-label">新窗口打开<span class="check-tips">（是否新窗口打开链接）</span></label>
                <select name="target" class="form-control input-s-sm">
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
            <div class="form-group">
                <label class="control-label">优先级<span class="check-tips">（导航显示顺序）</span></label>
                <input type="text" class="form-control input-s-sm" name="sort" value="{$info.sort|default='0'}">
            </div>
            <div class="form-group">
                <input type="hidden" name="id" value="{$info.id|default=''}">
                <button class="btn btn-primary ladda-button" data-style="slide-up" target-form="form-horizontal">确 定</button>
                <button class="btn btn-default" onclick="javascript:history.back(-1);
                        return false;">返 回</button>
            </div>
        </form>
    </div>
</block>
